"""
    本项目被托管在 https://github.com/umeiko/XMU_Reporter 
    GPL-3.0 开源许可
"""
import argparse

def parseArgs():
    """获取输入"""
    parser = argparse.ArgumentParser(
        description='Xmu daily health reporter【注意, 设置定时任务需要管理员权限运行】')
    parser.add_argument("-m", dest="mode", help="启动模式, report-打卡, users-设置用户, timetask-设置定时", default="report", type=str)
    args = parser.parse_args()
    return args

def main():
    args = parseArgs()
    if args.mode == "report":
        import healthReport
        healthReport.main()
    if args.mode == "users":
        import setUsers
        setUsers.main()
    if args.mode == "timetask":
        import tasksMsc
        tasksMsc.main()

if __name__ == "__main__":
    main()